"""app10 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.conf.urls import url
from app01 import views
urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^ab_ajax/', views.ab_ajax),
    # 用户数据校验
    url(r'^ab_form/', views.ab_form),
    # modelform注册
    url(r'^reg/', views.register),
    # cookie
    url(r'^set_cookie/', views.se_ck),
    # 获取数据
    url(r'^get_cookie/', views.se_gk),
    # cookie 实战测试
    url(r'^login/', views.login),
    url(r'^home/', views.home),
    url(r'^index/', views.index),
    url(r'^test/', views.test),
    # session 相关操作
    url(r'^set_session/', views.se_se),

    # 中间件
    url(r'^ab_md/', views.ab_md),

    # 转账功能
    url(r'^transfer/', views.transfer),
    # csrf装饰器
    url(r'^ab_csrf/', views.MyTransfer.as_view()),

    # auth模块相关操作
    url(r'^auth_reg/', views.auth_reg),
    url(r'^auth_login/', views.auth_login),
    url(r'^auth_home/', views.auth_home),
    url(r'^auth_index/', views.auth_index),
    url(r'^auth_test/', views.auth_test),
    url(r'^auth_setpwd/', views.auth_setpwd),
    url(r'^auth_logout/', views.auth_logout),
    url(r'^auth_logout/', views.auth_logout),

]
